package cn.com.yx.ms.persistence;

import cn.com.yx.ms.domain.dbmodel.StlDevMap;
import cn.com.yx.ms.domain.dev.EquipmentAndSiteModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StlDevMapMapper {
    int deleteByPrimaryKey(String guid);

    int insert(StlDevMap record);

    int insertSelective(StlDevMap record);

    StlDevMap selectByPrimaryKey(String guid);

    int updateByPrimaryKeySelective(StlDevMap record);

    int updateByPrimaryKey(StlDevMap record);

    String relationCheck(String guid);

    int insertDevMap(@Param("dev") String dev, @Param("guid") String guid, @Param("uuid") String uuid);

    int saveOrUpdate(@Param("dev") String dev);

    int deletedMapByDevId(@Param("devid")String devid);

    int setDeletedByStyleIdAndDevId(@Param("styleid")String styleid,@Param("devid")String devid);

    int devExistCheck(@Param("dev") String dev);

    List<String> selectByStyleId(String styleid);

    List<StlDevMap> getDevByStyleId(@Param("styleId")String styleId);

    List<EquipmentAndSiteModel> getEquipmentAndSiteByStyleId(@Param("styleId")String styleId);

    StlDevMap findOneByDevId(@Param("devId")String devId);
}